package tr.helper.repository.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * archives-service
 *
 * @author MrYe
 * @date 2021-12-14 11:53
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DbFiled {

    /**
     * 字段名称
     *
     * @return value
     */
    String value() default "";

    /**
     * 字段长度
     *
     * @return length
     */
    int length() default 32;

    boolean primary() default false;

    boolean isNull() default true;

}
